﻿#define TEST_INIT

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CC98
{
    public partial class InitializeProcessor
    {
#if TEST_INIT
        private static System.Threading.AutoResetEvent waitHandler = new System.Threading.AutoResetEvent(false);

        private static InitializeStage[] Stages = new InitializeStage[]
        {
            new InitializeStage()
            {
                Name = "Init_LoadUserStage",
                Handler = new Task(()=>
                {
                    waitHandler.WaitOne(1500);
                })
            },
            new InitializeStage()
            {
                Name = "Init_LoadAccountStage",
                Handler = new Task(()=>
                {
                    waitHandler.WaitOne(1500);
                })
            },
            new InitializeStage()
            {
                Name = "Init_LoadSessionStage",
                Handler = new Task(()=>
                {
                    waitHandler.WaitOne(1500);
                })
            }
        };
#else
        private static InitializeStage[] Stages = new InitializeStage[]
        {
        };
#endif

    }
}
